import request from '@/utils/request'

// 查询园区监控信息列表
export function listSupervisory(query) {
  return request({
    url: '/server/supervisory/list',
    method: 'get',
    params: query
  })
}

// 查询园区监控信息详细
export function getSupervisory(supervisoryId) {
  return request({
    url: '/server/supervisory/' + supervisoryId,
    method: 'get'
  })
}

// 新增园区监控信息
export function addSupervisory(data) {
  return request({
    url: '/server/supervisory',
    method: 'post',
    data: data
  })
}

// 修改园区监控信息
export function updateSupervisory(data) {
  return request({
    url: '/server/supervisory',
    method: 'put',
    data: data
  })
}

// 删除园区监控信息
export function delSupervisory(supervisoryId) {
  return request({
    url: '/server/supervisory/' + supervisoryId,
    method: 'delete'
  })
}

// 导出园区监控信息
export function exportSupervisory(query) {
  return request({
    url: '/server/supervisory/export',
    method: 'get',
    params: query
  })
}

// 获取监控设备信息
export function queryAllMonitorInfos() {
  return request({
    url: '/server/supervisory/monitor/queryAll' ,
    method: 'get',
  })
}

